<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateDataHomeuserTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('data_homeuser', function (Blueprint $table) {
            $table->increments('user_id');
            $table->string("user_name",60)->unique()->comment('用户名');
            $table->string("user_pass",255)->comment('密码');
            $table->integer("phone")->comment('手机号码');
            $table->string('email',255)->comment('邮箱');
            $table->string('token',255)->comment('验证用户有效性的标示');
            $table->tinyInteger('active')->comment('是否激活 1 激活 0 未激活');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('data_homeuser');
    }
}
